<?php /*a:3:{s:60:"D:\phpStudy\WWW\tp5\application\index\view\index\notice.html";i:1551936790;s:60:"D:\phpStudy\WWW\tp5\application\index\view\index\header.html";i:1550326364;s:60:"D:\phpStudy\WWW\tp5\application\index\view\index\footer.html";i:1550326435;}*/ ?>
 <!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>广州商学院lms</title>
    <link rel="stylesheet" href="/static/css/xadmin.css">
    <script type="text/javascript" src="/static/lib/layui/layui.js"></script>
    <script type="text/javascript" src="/static/js/jquery.js"></script>
    <link rel="stylesheet" type="text/css" href="/static/lib/layui/css/layui.css" />
    <style>
        body{
            background: #F7F7F7;
        }
       
    </style>
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo">广州商学院-lms</div>
        <!-- 头部区域（可配合layui已有的水平导航） -->
        <ul class="layui-nav layui-layout-left">
            <li class="layui-nav-item"><a href="<?php echo url('index'); ?>">首页</a></li>
        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <?php if(app('session')->get('user')): ?>
                <a href="javascript:;">
                    <?php if(app('session')->get('user.img')): ?>
                    <img src="/uploads/<?php echo htmlentities(app('session')->get('user.img')); ?>" class="layui-nav-img">
                    <?php else: ?>
                    <img src="/static/img/头像默认.png" class="layui-nav-img">
                    <?php endif; ?>
                    <?php echo htmlentities(app('session')->get('user')->userinfo->realname); ?>
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="">基本资料</a></dd>
                    <dd><a href="">切换账号</a></dd>
                </dl>
                <?php else: ?>
                <a href="<?php echo url('login'); ?>">登录</a>
                <?php endif; ?>
            </li>
            <li class="layui-nav-item">
                <?php if(app('session')->get('user')): ?>
                <a href="<?php echo url('logout'); ?>">注销</a>
                <?php else: ?>
                <a href="<?php echo url('regist'); ?>">注册</a>
                <?php endif; ?>
            </li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree" lay-filter="test">
                <li id="lab_app" class="layui-nav-item">
                    <a class=""  href="javascript:;">实验室预约</a>
                    <dl class="layui-nav-child">
                        <dd><a href="<?php echo url('lab_empty'); ?>">空实验室</a></dd>
                        <!--<dd><a href="javascript:;">列表二</a></dd>-->
                    </dl>
                </li>
                <li id="tool_app" class="layui-nav-item">
                    <a href="javascript:;">器具租借</a>
                    <dl class="layui-nav-child">
                        <dd><a href="<?php echo url('tool_small_app'); ?>">小型器具借用申请</a></dd>
                        <dd><a href="<?php echo url('tool_big_app'); ?>">大型器具借用申请</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item" id="lab_yuyue">
                    <a href="javascript:;">预约进度</a>
                    <dl class="layui-nav-child">
                        <dd id="now_yuyue"><a href="<?php echo url('lab_app_list'); ?>">课室当前预约</a></dd>
                        <dd id="old_yuyue"><a href="<?php echo url('lab_history_list'); ?>">课室历史预约</a></dd>
                        <dd id="tool_yuyue"><a href="<?php echo url('tool_list'); ?>">器具借用进度</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item" id="teacher_list"><a href="<?php echo url('teacher_list'); ?>">联系教师</a></li>
                <li class="layui-nav-item" id="notice"><a href="<?php echo url('notice'); ?>">公告消息</a></li>
                <li class="layui-nav-item" id="feedback"><a href="<?php echo url('feedback'); ?>">问题反馈</a></li>
                <li class="layui-nav-item" id="about_me"><a href="<?php echo url('about_me'); ?>">关于我的</a></li>
            </ul>
        </div>
    </div>

    <div class="layui-body">
<style>
    .list ul{
        /*border: 1px solid#ccc;*/
    }
    .list li{
        background: #FFFFFF;
        border: 1px solid #EFEFEF;
        border-radius: 4px;
        margin-bottom: 5px ;
        padding: 10px 30px;
        line-height: 34px;
        box-shadow: 2px 4px 8px #EFEFEF;
    }
    .list li p{
        text-indent: 1em;
        font-size:14px ;
        color: #666666; 
    }
    .list h3{
        /*font-family: 宋体;*/
        /*font-weight:bold ;*/
        font-size: 18px;
        color: #2d64b3;
    }
    .list span{
        /*font-size: 12px;*/
    }
    .pagination{
        /*border: 1px solid#000;*/
        display: flex;
        /*align-items: center;*/
        justify-content: center;
    }
    .pagination li{
        display: inline-block;
        line-height: 24px;
        height: 25px;
        width: 34px;
        text-align: center;
        padding: 10px;
    }
</style>
<div style="padding: 10px">
    <div class="list" style="margin: 20px auto; width: 800px;">
    <ul>
        <?php if(is_array($notices) || $notices instanceof \think\Collection || $notices instanceof \think\Paginator): $i = 0; $__LIST__ = $notices;if( count($__LIST__)==0 ) : echo "暂无公告" ;else: foreach($__LIST__ as $key=>$notice): $mod = ($i % 2 );++$i;?>
        <li>
            <a href="<?php echo url('notice_info',['id'=>$notice['id']]); ?>"><h3><?php echo htmlentities($notice['title']); ?></h3></a>
            
            <div style="">
                <span class="layui-word-aux"><i class="layui-icon">&#xe66f;</i>&nbsp;<?php echo htmlentities($notice['author_name']); ?></span>
                <span  class="layui-word-aux"><i class="layui-icon">&#xe637;</i>&nbsp;<?php echo htmlentities($notice['create_time']); ?></span>
            </div>
        </li>
        <?php endforeach; endif; else: echo "暂无公告" ;endif; ?>
    </ul>
    <div style="margin: auto;">
        <?php echo $notices; ?>
        </div>
    </div>

</div>
</div>

<div class="layui-footer">
    <!-- 底部固定区域 -->
    Copyright-2018-实验室管理系统网
</div>
</div>
<script>
    //JavaScript代码区域
    layui.use('element', function() {
        var element = layui.element;

    });
</script>
</body>
</html>

<script>
    $('#notice').addClass("layui-nav-itemed");
</script>